home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / code_lib / objlibr / objlib12 / sample1 / sample1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-06-04  |  1.4 KB  |  54 lines

  1. VERSION 2.00
  2. Begin Form sample1 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Change Me!"
  6.    ClientHeight    =   1890
  7.    ClientLeft      =   4215
  8.    ClientTop       =   1305
  9.    ClientWidth     =   2235
  10.    Height          =   2295
  11.    Left            =   4155
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    ScaleHeight     =   126
  15.    ScaleMode       =   3  'Pixel
  16.    ScaleWidth      =   149
  17.    Top             =   960
  18.    Width           =   2355
  19.    Begin CommandButton Command1 
  20.       BackColor       =   &H00C0C0C0&
  21.       Caption         =   "Select"
  22.       Height          =   465
  23.       Left            =   630
  24.       TabIndex        =   0
  25.       Top             =   1110
  26.       Width           =   1035
  27.    End
  28.    Begin CommonDialog cd 
  29.       CancelError     =   -1  'True
  30.       Left            =   1290
  31.       Top             =   2520
  32.    End
  33.    Begin Image i1 
  34.       BorderStyle     =   1  'Fixed Single
  35.       Height          =   510
  36.       Left            =   870
  37.       Picture         =   SAMPLE1.FRX:0000
  38.       Top             =   330
  39.       Width           =   510
  40.    End
  41. Option Explicit
  42. Sub command1_click ()
  43. ChngIcon.Show 1
  44. i1 = ChngIcon.loader.Image
  45. Unload ChngIcon: Set ChngIcon = Nothing
  46. End Sub
  47. Sub Form_Load ()
  48. tx = screen.TwipsPerPixelX: ty = screen.TwipsPerPixelY
  49. End Sub
  50. Sub Form_Paint ()
  51. RaiseForm Me
  52. Sink Me, i1
  53. End Sub
  54.